package com.drawingtimer.admin.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 工序信息
 *
 * @author jjh 2025-04-24 16:34:17
 */
@Data
@TableName("t_process_info")
@Schema(title = "工序信息")
public class TProcessInfo {

	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	@TableId(type = IdType.AUTO)
	@Schema(title = "ID")
	private Long id;

	/**
	 * 流转卡号
	 */
	@Schema(title = "流转卡号")
	private String flowCardNumber;

	/**
	 * 工序序号
	 */
	@Schema(title = "工序序号")
	private Integer processSequence;

	/**
	 * 工序编码
	 */
	@Schema(title = "工序编码")
	private String processCode;

	/**
	 * 工序名称
	 */
	@Schema(title = "工序名称")
	private String processName;

	/**
	 * 准备工时
	 */
	@Schema(title = "准备工时")
	private BigDecimal setupTime;

	/**
	 * 标准工时
	 */
	@Schema(title = "标准工时")
	private BigDecimal standardTime;

	/**
	 * 总数量
	 */
	@Schema(title = "总数量")
	private BigDecimal totalQuantity;

	/**
	 * 完工数量
	 */
	@Schema(title = "完工数量")
	private Long completedQuantity;

	/**
	 * 报废数量
	 */
	@Schema(title = "报废数量")
	private Long scrappedQuantity;

	/**
	 * 报废原因
	 */
	@Schema(title = "报废原因")
	private String scrapReason;

	/**
	 * 状态
	 */
	@Schema(title = "状态 0 未开工 1 已开工 2 暂停 3 已完工")
	private Integer status;

}
